<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a=+prompt('请输入您的年纪');
        if(a<18){
            console.log('哪来的小屁孩滚一边去');
        }else if(a>=18&&a<=60){
            console.log('来吧大宝贝');
        }else{
            console.log('大爷，你身子还耐造不');
        }
    </script>
</body>
</html>